<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

/**
 * Class OACurrency
 * @package App\Model
 * @desc 币种列表
 */
class OACurrency extends Model
{
    protected $table = 'currency';

    protected $fillable = ['currency','rate'];

    //获取所有货币
    public static function getAllCurrency(){
        return self::query()
            ->select([
                'currency',
                'id',
            ])
            ->get()
            ->toArray();
    }
}
